#ifndef _SR_INPUT
#define _SR_INPUT





#include "byte_util.h"
#include "digital_io.h"
#include "SR_struct.h"

#define SR_NUM_TO_MEAN 5
#define SR_NUM_TO_REACH (SR_NUM_TO_MEAN/2)


static SR_Digital_Input_type SR_Digital_Input[SR_NUM_TO_MEAN];


extern unsigned char Digital_Input[MAX_BYTE_INPUT_IO];


void SR_Input_Init (void);
void SR_Input_Mean (void);
void SR_Input_Read (SR_Digital_Input_type *SR_struct_Pointer);
void SR_Input_Load (void);
void SR_Input_Latch (void);
void SR_Input_Clear (void);
void SR_Input_wait (void);
void SR_Input_Adjust(void);

#endif
